// 微应用的配置文件
const getActiveRule = (hash) => (location) => location.hash.startsWith(hash);

const apps = [
  {
    name: "authority-app",
    entry: "//localhost:8081",
    container: "#authority-app",
    activeRule: getActiveRule("#/authority"),
    props: {
      // routeBase: "/authority",
    },
  },
  {
    name: "business-app",
    entry: "//localhost:8082",
    container: "#app-container",
    activeRule: getActiveRule("#/business"),
    // props: {
    //   routeBase: "/business",
    // },
  },
  {
    name: "finance-app",
    entry: "//localhost:3000",
    container: "#app-container",
    activeRule: getActiveRule("#/finance"),
  },
];
export default apps;
